package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.EcologyReforgeConf;
import com.sc.nft.entity.vo.AdminSimpleReforgeCollectionVO;
import com.sc.nft.entity.vo.ecology.AdminGetPageReforgeConfVO;
import com.sc.nft.entity.vo.ecology.EcologyReforgeDetailsVO;
import com.sc.nft.entity.vo.ecology.EcologyReforgeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 生态-重铸-配置 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-14
 */
@Mapper
public interface EcologyReforgeConfMapper extends BaseMapper<EcologyReforgeConf> {

    /**
     * 分页获取生态重铸配置
     *
     * @param page
     * @param collectionName
     * @return
     */
    Page<AdminGetPageReforgeConfVO> getPageReforgeConf(Page page, @Param("collectionName") String collectionName);

    /**
     * 获取简单的生态重铸配置
     *
     * @param page
     * @return
     */
    Page<AdminSimpleReforgeCollectionVO> getSimplePage(Page page);

    Page<EcologyReforgeListVO> getPageEcologyReforge(Page page, @Param("collectionIds") List<Long> collectionIds,@Param("userCreatorId") Long userCreatorId);

    EcologyReforgeDetailsVO getProductDetailsById(@Param("id") Long id);
}
